﻿using System;
using System.Drawing;

namespace Lyh.Train.Controls.Editors
{
    public class TextItem
    {
        private string _text=string.Empty;
        private ColorTextBox _textBox;
        private Color _foreColor = Color.White;
        private string _newLine = Environment.NewLine;
        private NewLineLocation _location = NewLineLocation.Before;

        public string Text
        {
            get { return _text; }
            set { _text = value; }
        }

        public ColorTextBox TextBox
        {
            get { return _textBox; }
            set { _textBox = value; }
        }

        public Color ForeColor
        {
            get { return _foreColor; }
            set { _foreColor = value; }
        }

        public string NewLine
        {
            get { return _newLine; }
            set { _newLine = value; }
        }

        public NewLineLocation Location
        {
            get { return _location; }
            set { _location = value; }
        }
    }

    public enum NewLineLocation
    {
        Before,
        After
    }
}
